import http from "@/utils/request";
import type { UpdatePassword } from "@/pages/UpdatePassword";

export async function updatePasswordCaptcha(email: string) {
    return await http('/user/update_password/captcha', 'get', { address: email });
}

export async function updatePassword(data: UpdatePassword) {
    return await http('/user/update_password', 'post', data);
}